<?php
//page link
$link_page=get_permalink(get_option('rttheme_blog_page'));

//category link
$category_id = get_the_category($post->ID);
$category_id = $category_id[0]->cat_ID;//only one category can be show in the list  - the first one
$link_cat=get_category_link($category_id); 

get_header();
?>

<!-- content -->
<div id="main">
    
    <!-- left side content -->
    <div class="content sub">
        
        <div class="embedded-title">
        <!-- Page Title -->
                <h2><?php the_title(); ?></h2>
        <!-- / Page Title -->

        <!-- Page navigation-->
                <div class="breadcrumb"><?php  rt_breadcrumb($post->ID); ?></div>
        <!-- /Page navigation-->
        </div>
        <div class="clear"></div>
 

        <?php if (have_posts()) : while (have_posts()) : the_post();
        $current_post=$post->ID;
        ?>

        <!-- blog box-->
        <div class="blog">

            <!-- blog text-->
            <?php echo the_content(); ?> 
            <!-- /blog text-->

            <!-- date and cathegory bar -->
            <div class="dateandcategories">
                <?php the_time('M d') ?> | Categor&iacute;a: <?php the_category(', ') ?>
            </div>
            <!-- / date and cathegory bar -->
			
        </div>
        <!-- blog box-->
			     
        <?php endwhile; ?>
        <?php else: ?>
                <p><?php _e( 'Sorry, no page found.', 'rt_theme' ); ?></p>
        <?php endif; ?>

	<div class="clear"></div>
	<div class='entry commententry'>
	    <?php comments_template(); ?>
	</div>
 
    </div>
    <!-- / left side content -->
   
    <!-- side bar -->
    <div class="sidebar">
        <?php include(TEMPLATEPATH."/sidebar.php"); ?>
    </div>
    <!-- / side bar -->
    
</div>
<!-- content -->

  
<?php get_footer();?>